package com.yfve.eol.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.yfve.eol.service.EolService;


public class EolBootCompleteReceiver extends BroadcastReceiver {
    private static final String TAG = "EolBootCompleteReceiver";

    @Override
    public void onReceive(final Context context, Intent intent) {
        Log.i(TAG, "onReceive: launch eol application and start eol service");
        String action = intent.getAction();
        if (Intent.ACTION_BOOT_COMPLETED.equals(action)) {
            context.startService(new Intent(context, EolService.class));
        }
    }
}
